package com.example.hospital.service;

import com.example.hospital.dto.LoginForm;
import com.example.hospital.dto.PatientQuery;
import com.example.hospital.dto.Result;
import com.example.hospital.entity.Patient;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * @author Oreki
 * @description 针对表【patient】的数据库操作Service
 * @createDate 2024-12-27 16:53:20
 */
public interface PatientService extends IService<Patient> {

    Result<Map<String, String>> login(LoginForm loginForm);

    Patient getPatientByPhoneNumber(String phoneNumber);

    Result register(Patient patient);

    List<Patient> listPatients(PatientQuery patientQuery);
}
